<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>正在进行尝试轮询 PostgreSQL 链接状态。</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.pg-connect-poll" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">pg_connect_poll</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.6.0, PHP 7)</p><p class="refpurpose"><span class="refname">pg_connect_poll</span> &mdash; <span class="dc-title">
   正在进行尝试轮询 PostgreSQL 链接状态。
  </span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.pg-connect-poll-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>pg_connect_poll</strong></span>
    ([ <span class="methodparam"><span class="type">resource</span> <code class="parameter">$connection</code></span>
  ] ) : <span class="type">int</span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>pg_connect_poll()</strong></span> 轮询使用 <span class="function"><a href="pg_connect.html" class="function">pg_connect()</a></span> 创建的 PostgreSQL 链接状态，根据
   <strong><code>PGSQL_CONNECT_ASYNC</code></strong> 选项
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.pg-connect-poll-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<code class="parameter">connection</code></dt>

    <dd>

     <p class="para">
      PostgreSQL 数据库链接资源
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.pg-connect-poll-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   返回常量 <strong><code>PGSQL_POLLING_FAILED</code></strong>,
   <strong><code>PGSQL_POLLING_READING</code></strong>,
   <strong><code>PGSQL_POLLING_WRITING</code></strong>,
   <strong><code>PGSQL_POLLING_OK</code></strong>, 或者
   <strong><code>PGSQL_POLLING_ACTIVE</code></strong>.
  </p>
 </div>

</div></div></div></body></html>